package cn.mesmile.shiro.config;

import cn.hutool.core.util.IdUtil;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;

import java.io.Serializable;

/**
 * @author zb
 * @date 2021/2/12 17:16
 * @Description: 自定义 SessionId
 */
public class CustomSessionIdGenerator implements SessionIdGenerator {


    @Override
    public Serializable generateId(Session session) {
        String s = IdUtil.fastUUID();
        return "super"+ s;
    }
}
